#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/happy.sql ./mysql/db
cp ../sql/happy_config.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../happy-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy ruoyi-gateway "
cp ../happy-gateway/target/happy-gateway.jar ./happy/gateway/jar

echo "begin copy ruoyi-auth "
cp ../happy-auth/target/happy-auth.jar ./happy/auth/jar

echo "begin copy ruoyi-visual "
cp ../happy-visual/happy-monitor/target/happy-visual-monitor.jar  ./happy/visual/monitor/jar

echo "begin copy ruoyi-modules-system "
cp ../happy-modules/happy-system/target/happy-modules-system.jar ./happy/modules/system/jar

echo "begin copy ruoyi-modules-file "
cp ../happy-modules/happy-file/target/happy-modules-file.jar ./happy/modules/file/jar

echo "begin copy ruoyi-modules-job "
cp ../happy-modules/happy-job/target/happy-modules-job.jar ./happy/modules/job/jar

echo "begin copy ruoyi-modules-gen "
cp ../happy-modules/happy-gen/target/happy-modules-gen.jar ./happy/modules/gen/jar

